home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / quicktime / quicktime for java / jscriptapplet / readme.txt < prev   
Encoding:
Text File  |  2000-09-28  |  4.3 KB  |  97 lines

  1. =============================================================================
  2. QuickTime for Java SDK                              Updated: 30 November 1998
  3.  
  4. Read Me Notes to "QTSimple Applet" Demo and Sample Code
  5.  
  6. =============================================================================
  7. This demo program shows how to control a QuickTime movie within a browser using JavaScript.
  8.  
  9. =============================================================================
  10. The minimum runtime requirements for this Sample Code are:
  11.  
  12. - Common
  13.     - Sun Compliant Java Runtime Environment 1.1
  14.     - QuickTime 3 
  15.     - QTJava.zip
  16.     - Internet Explorer 4 on Windows
  17.      - It will work with the Mozilla builds of Netscape Navigator on both MacOS and Win using their OJI plugin.
  18.  
  19. - MacOS
  20.     - System 8 or later
  21.     - Macintosh Runtime for Java (MRJ) 2.1
  22.  
  23. - Windows 95, 98, or NT::
  24.     - JRE/JDK from Sun Microsystems, Inc. recommended
  25.  
  26. =============================================================================
  27. Media requirements for this Sample Code are found in the classes directory where the HTML and class files are located:
  28.  
  29. (1) jumps.mov
  30.  
  31. =============================================================================
  32. Notes & Comments
  33.  
  34. See the SimpleApplet comments for general comments about the structure of QTJava applets.
  35.  
  36. The demo works with IE on Windows - due to an incomplete implementation of LivveConnect in Netscape V4 and on MacOS browsers that are currently shipping. It will work with the Mozilla builds of Netscape Navigator on both MacOS and Win using their OJI plugin.
  37.  
  38. Load the MovieDemo.html in the browser - it will load the movie which can be controlled through the Java Script buttons.
  39.  
  40. This applet uses the Java Plugin to allow the JavaSoft JRE to be the runtime java VM rather than the browser's built in Java.
  41.  
  42. QTJava applets are run in IE using the Java Plugin through a conversion of the applet tag to an object tag for IE and an embed tag for Netscape.
  43.  
  44. The original applet tag is:
  45. <APPLET CODE=JScriptApplet.class WIDTH=200 HEIGHT=200 ALIGN=baseline NAME=JScriptApplet>
  46.     <param name=file value="jumps.mov">
  47. </APPLET>
  48.  
  49. The resulting tag is:
  50.         <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
  51.             ID="JScriptApplet"
  52.              WIDTH="200" HEIGHT="200"
  53.              ALIGN="baseline"
  54.              CODEBASE="http://java.sun.com/products/plugin/1.1/jinstall-11-win32.cab#Version=1,1,0,0">
  55.              <PARAM NAME="code" VALUE="JScriptApplet.class">
  56.              <PARAM NAME="type" VALUE="application/x-java-applet;version=1.1">
  57.             <PARAM NAME="file" VALUE="jumps.mov">
  58.             <COMMENT> <!-- This wont' work in Netscape version 4 or less --> 
  59.                 <EMBED TYPE="application/x-java-applet;version=1.1"
  60.                     CODE="JScriptApplet.class"
  61.                     NAME="JScriptApplet"
  62.                     WIDTH="200" HEIGHT="200"
  63.                     ALIGN="baseline"
  64.                     FILE="jumps.mov"
  65.                     PLUGINSPAGE="http://java.sun.com/products/plugin/1.1/plugin-install.html">
  66.                     <NOEMBED>
  67.             </COMMENT>
  68.                            No JDK 1.1 support for APPLET!!
  69.                        </NOEMBED>
  70.                    </EMBED>
  71.         </OBJECT>
  72.  
  73.  
  74. So the Applet tag names the applet (which is how JScript would talk to it)
  75.  
  76. In the OBJECT tag the value of the NAME tag becomes the ID tag.
  77.  
  78. In the EMBED tag (if it worked!) the NAME tag is the NAME tag.
  79.  
  80. In the accompanying html file you will see the approach that is used to send JScript messages to the applet.
  81.  
  82. An applet tagged version of this html page (not provided) should work with the OJI plugin of the Mozilla builds of Netscape Navigator on MacOS and Win32 systems.
  83.  
  84. =============================================================================
  85. General Comments
  86.  
  87. - QTSession.open and close:
  88.  
  89. A QTSession.open will perform a gestalt check to ensure that QuickTime is present and is initialized. This is a required call before any QuickTime Java classes can be used - it is called first in the init() method
  90.  
  91. It is necessary for programs to call QTSession.close if they have previously called QTSession.open in order to shut down QuickTime properly - it is called in the destroy() method
  92.  
  93. =============================================================================
  94.  
  95. QuickTime and QuickTime for Java are trademarks of Apple Computer, Inc.
  96. (c) 1998 Apple Computer Inc. All rights reserved.
  97.